{include file="header.html"}
<script type="text/javascript">
	$(function(){
	});
</script>
<div id="rightTop">
	<p>零担货单</p>
	<ul class="subnav">
		<li><span>{$lang.manage}</span>
		</li>
		<li><a class="btn1" href="index.php?app=goodsless&amp;act=add">{$lang.add}</a>
		</li>
	</ul>
</div>
<div class="mrightTop">
	<div class="fontl">
		<form method="get">
			<div class="left">
				<input type="hidden" name="app" value="goodsless" />
				<input type="hidden" name="act" value="index" />
				货单编码:
				<input class="queryInput" type="text" name="g_code" value="{$smarty.get.g_code}" />
				货主:
				<input class="queryInput" type="text" name="g_owner" value="{$smarty.get.g_owner}" />
				<input type="submit" class="formbtn" value="{$lang.query}" />
			</div>
		</form>
	</div>
	<div class="fontr">{include file=page.top.html}</div>
	<div class="clear:both;"></div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable">
		<!--{if $goodsless}-->
		<tr class="tatr1">
			<td width="20" class="firstCell"><input type="checkbox"	class="checkall" /></td>
			<td>货单编码</td>
			<td>货主</td>
			<td>货主电话</td>
			<td>收货人</td>
			<td>收货人电话</td>
			<td>发货人</td>
			<td>发货人电话</td>
			<td>下单人</td>
			<td>下单时间</td>
			<td></td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$goodsless item=w}-->
		<tr class="tatr2">
			<td class="firstCell"> <input type="checkbox" class="checkitem" value="{$w.g_tid}"/></td>
			<td>{$w.g_code}</td>
			<td>{$w.g_owner}</td>
			<td>{$w.g_owner_tel}</td>
			<td>{$w.g_consignee}</td>
			<td>{$w.g_consignee_tel}</td>
			<td>{$w.g_consignor}</td>
			<td>{$w.g_consignor_tel}</td>
			<td>{$w.user_name}</td>
			<td>{if $w.g_opdate}{$w.g_opdate|date:Y-m-d H:i}{else}{/if}</td>
			<td>
				{if !$w.ws_tid}
					<a href="index.php?app=goodsless&amp;act=add&amp;id={$w.g_tid}" >编辑</a> |
				{else}
					<a href="index.php?app=goodsless&amp;act=add&amp;id={$w.g_tid}">查看</a>
				{/if}
				{if !$w.ws_tid}
					<a name="drop" href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=goodsless&amp;act=drop&amp;id={$w.g_tid}');">{$lang.drop}</a>
				{/if}
			</td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="7">{$lang.no_data}</td>
		</tr>
		<!--{/foreach}-->
	</table>
	<!--{if $goodsless}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15" style="padding-top: 10px;">
			&nbsp;&nbsp; <input class="formbtn batchButton" type="button"
								value="{$lang.drop}" name="id" uri="index.php?app=goodsless&act=drop"
								presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
		</div>
		<div class="clear:both;"></div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->
</div>
{include file="footer.html"}